<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
</head>
<body>
   <p><a href="Home.html">Torna alla home</a></p>
   <form name="loginForm" method="post" action="LoginServlet">
      <p>Username <input type="text" name="username"></p>
      <p>Password <input type="password" name="password"></p>
      <p><input type="submit" value="Login"> <input type="reset" value="Reset"></p>
   </form>
   <% if(request.getAttribute("errore") != null) {
	  
	      request.setAttribute("messaggio", request.getAttribute("errore"));
	   
      }
   
      else {
    	  
    	  request.setAttribute("messaggio", "");
    	  
      }
   %>
   <%= request.getAttribute("messaggio") %>
</body>
</html>